package cn.com.woxitech.dev.common;

import java.util.HashMap;
import java.util.Map;

public class RoomWebSocketSession {

    private static RoomWebSocketSession instance = new RoomWebSocketSession();  
    
    public static RoomWebSocketSession getInstance() {  
    	return instance;  
    }  
    
    private Map<String, Map<String, Object>> store;
    
    private RoomWebSocketSession (){
    	store = new HashMap<String, Map<String, Object>>();
    }

	public Map<String, Object> getAttributes(String key) {
		Map<String, Object> mp = store.get(key);
		return mp;
	}

	public void setAttributes(String key, Map<String, Object> mp) {
		this.store.put(key, mp);
	}

	public void removeAttributes(String key) {
		// TODO Auto-generated method stub
		this.store.remove(key);
	}
    
    
    
    

}  